package com.hefeng.wx.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.hefeng.wx.domain.WxDevice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 设备信息表;(wx_device)表数据库访问层
 * @author : hzh
 * @date : 2022-9-7
 */

@Mapper
public interface WxDeviceMapper extends BaseMapper<WxDevice> {
    /**
     * 方法说明: 获取用户设备集合
     * @param userId
     * @return List
     * @Author: huzh
     * @Date: 2022/9/8
     */
    List<Map> selectDeviceList(@Param(value = "userId") long userId);

    IPage<Map> selectByPage(IPage<Map> page , @Param(Constants.WRAPPER) Wrapper<WxDevice> wrapper);
}
